package com.icoding.fw.utils;

import org.apache.commons.lang.StringUtils;

public class Resource {

	public static final String ROOT_PROJECT_URL = "iCoding-fw";

	public static final String LANGUAGE_IMAGE_FOLDER = "/img/lang/";

	public static final String IMAGE_FOLDER = "/img/";

	public static final String MD5_SECRET_KEY = "icodensell";

	/**
	 * Use to decode URL SEO
	 * 
	 * @param value
	 * @return
	 */
	public static final String getUrlDecode(String value) {
		return StringUtils.trimToEmpty(value).replaceAll("-", " ");
	}

	/**
	 * Use to Encode URL SEO
	 * 
	 * @param value
	 * @return
	 */
	public static final String getUrlEncode(String value) {
		return StringUtils.trimToEmpty(value).replaceAll("\\s", "-");
	}

}
